package org.qydjk.common.pojo.company;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 企业产品
 *  Created by Edward_yang on 2018/01/05
 */
@Entity
@Table(name = "qy_company_product", catalog = "qydjk")

public class CompanyProduct implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer companyId;
	private String img; // 企业产品大图
	private String thumbnailImg;//企业产品缩略图
	private String name;
	private BigDecimal price;
	private Integer ord;
	private Integer issue;//0 未发布 1 已发布
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public CompanyProduct() {
	}

	/** full constructor */
	public CompanyProduct(Integer companyId, String name,BigDecimal price,String img, String thumbnailImg, Integer ord,Integer issue, Date createTime, Date updateTime) {
		this.companyId = companyId;
		this.name = name;
		this.img = img;
		this.price=price;
		this.thumbnailImg = thumbnailImg;
		this.ord = ord;
		this.issue = issue;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "company_id")

	public Integer getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	@Column(name = "name", length = 200)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ord")

	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "issue")
	public Integer getIssue() {
		return issue;
	}

	public void setIssue(Integer issue) {
		this.issue = issue;
	}

	@Column(name = "img", length = 200)
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	@Column(name = "thumbnail_img", length = 200)
	public String getThumbnailImg() {
		return thumbnailImg;
	}

	public void setThumbnailImg(String thumbnailImg) {
		this.thumbnailImg = thumbnailImg;
	}
	@Column(name = "price", precision = 12)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
}